<?php
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model backend\models\AdminUser */
/* @var $list \common\models\Article[] */
$this->title = '会员须知';
?>
<section class="app-container app-index">
    
    <!-- form -->
    <!--
        这个地方针对图片做了处理 宽高 == 100%
     -->
    <?= $this->render('flash') ?>

    <!-- nav -->
    <menu class="app-index-menu">
        <?php
        foreach($list as $k=>$item){
            echo '<a href="'. Url::toRoute(['site/article', 'id' => $item->id]) .'">';
            echo '<img src="'. $item->file->file_path .'" alt="'. $item->title .'">';
            echo $item->title;
            echo '</a>';
        }
        ?>
    </menu>

</section>

